package com.uml.umlwork.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.uml.umlwork.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author Siki
 * @date 2021/1/7
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@ApiModel("培训班实体")
@TableName(value = "uml_class",autoResultMap = true)
public class Class extends BaseEntity {

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("开班时间")
    private LocalDateTime startDate;

    @ApiModelProperty("是否发布培训信息")
    private Boolean isAnnounce;

    @ApiModelProperty("学费")
    private String tuition;

    @ApiModelProperty("课程ID")
    private Integer courseId;

    @ApiModelProperty("培训师ID")
    private String teacherId;
}
